-- card: 40835 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 4755 -- name: -- part 1 (field) -- low flags: 00 -- high flags: 0007 -- rect: left=30 top=78 right=296 bottom=478 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 4 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: -- part 2 (button) -- low flags: 00 -- high flags: 0001 -- rect: left=13 top=29 right=57 bottom=351 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: New Button -- part contents for card part 1 ----- text ----- ----------------------------- TC version -------------------------- /* * FILE: class.h * AUTHOR: R.G. * CREATED: June 25, 1990 * * header file defines Generic_Class */ # define _H_class /* prevents header "re-inclusion" in TC */ /****************************************************************** * root class for all classes ******************************************************************/ struct Generic_Class:indirect { int init(void); int destroy(void); }; ---------------------------- C++ version -------------------------- /* * FILE: class.h * AUTHOR: R.G. * CREATED: June 25, 1990 * * header file defines Generic_Class */ # ifndef class_h /* prevents header "re-inclusion" in C++ */ # define class_h /****************************************************************** * root class for all classes ******************************************************************/ struct Generic_Class { virtual int init(void); virtual int destroy(void); }; # endif -- part contents for background part 7 ----- text ----- 131 -- part contents for background part 6 ----- text ----- Object-oriented program using multiple source and header files -- part contents for background part 4 ----- text ----- File 1 of 7 demonstrating TC/C++ object-oriented programming: